#include"Stack.h"
#include"Queue.h"
void test01() {
	ST st;
	StackInit(&st);
	StackPush(&st, 1);
	StackPush(&st, 2);
	StackPush(&st, 3);
	StackPush(&st, 4);
	StackPush(&st, 5);
	while (!StackEmpty(&st))
	{
		printf("%d ", StackTop(&st));
		StackPop(&st);
	}
StackDestory(&st);
}
void test02() {
	Queue q;
	QueueInit(&q);
	QueuePush(&q, 1);
	QueuePush(&q, 2);
	QueuePush(&q, 3);
	QueuePush(&q, 4);
	QueuePush(&q, 5);
	printf("%d ", QueueSize(&q));
	while(!QueueEmpty(&q))
	{ 
	  printf("%d ",QueueFront(&q));
	  QueuePop(&q);
	}
	printf("\n");
	printf("%d ", QueueSize(&q));
	QueueDestory(&q);
}
int main() {
	//test01();
	test02();
	return 0;





}